//
//  AppConfig.h
//  CloudKaraoke
//
//  Created by macbook on 8/10/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "colors.h"

#define DEBUG_MODE 1

#define ENCODING_TCVN 1

#define CUR_VERSION 1

//#define USE_SONCAID_SERVICE 1

#define DBFILENAME          @"vidia.db"

/*
 *
 *
 */
#define MY_SONG_MUSIC_FORMAT    @"mp3"
#define LRC_LYRIC_FORMAT        @"lrc"
#define MY_SONG_LYRIC_FORMAT    @"xml"
#define MAX_MY_SONG             50

/*
 *
 *
 */
#define APP_REGISTRY_FILE       @"SKarProSetting.reglist"

#if (defined(DEBUG_MODE) && DEBUG_MODE)
#define DBLog(stringFormat, ...) NSLog(stringFormat, ##__VA_ARGS__)
#else
#define DBLog(stringFormat, ...) do{} while(0)
#endif

#define SYSTEM_VERSION_EQUAL_TO(v)                  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)
#define SYSTEM_VERSION_GREATER_THAN(v)              ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN(v)                 ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v)     ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)

#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
#define IS_IPHONE_5 (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 568.0f)
#define IS_RETINA ([[UIScreen mainScreen] scale] == 2.0f)

@interface AppConfig : NSObject

@end
